package com.erp.service;

import javax.servlet.http.HttpSession;

import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.flex.remoting.RemotingInclude;
import org.springframework.stereotype.Service;

import flex.messaging.FlexContext;

@Service("aaa")
@RemotingDestination(channels = { "my-amf" })
public class MyService {

	@RemotingInclude
	public String firstApp(String info) {

		HttpSession s = FlexContext.getHttpRequest().getSession();
		s.setAttribute("a", "111");

		System.out.println("----------------------" + info);

		return "Hello World yyf" + info;

	}
}
